home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / usr / share / pyshared / ccm / Constants.py < prev    next >
Encoding:
Python Source  |  2009-03-10  |  2.6 KB  |  108 lines

  1. #!/usr/bin/env python
  2. # -*- coding: UTF-8 -*-
  3.  
  4. # This program is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU General Public License
  6. # as published by the Free Software Foundation; either version 2
  7. # of the License, or (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful, 
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
  17. #
  18. # Authors: Quinn Storm (quinn@beryl-project.org)
  19. #          Patrick Niklaus (marex@opencompositing.org)
  20. #          Guillaume Seguin (guillaume@segu.in)
  21. #          Christopher Williams (christopherw@verizon.net)
  22. # Copyright (C) 2007 Quinn Storm
  23.  
  24. import pygtk
  25. import gtk
  26. import gtk.gdk
  27.  
  28. # Optional Imports
  29. #
  30. try:
  31.     import sexy
  32.     has_sexy = True
  33. except ImportError:
  34.     has_sexy = False
  35.  
  36. # Current Screen
  37. #
  38. CurrentScreenNum = gtk.gdk.display_get_default().get_default_screen().get_number()
  39.  
  40. # Settings Table
  41. #
  42. TableDef = gtk.FILL | gtk.EXPAND
  43. TableX   = 4
  44. TableY   = 2
  45.  
  46. # Action Constants
  47. #
  48. KeyModifier = ["Shift", "Control", "Mod1", "Mod2", "Mod3", "Mod4",
  49.                "Mod5", "Alt", "Meta", "Super", "Hyper", "ModeSwitch"]
  50. Edges       = ["Left", "Right", "Top", "Bottom",
  51.                "TopLeft", "TopRight", "BottomLeft", "BottomRight"]
  52.  
  53. # Label Styles
  54. #
  55. HeaderMarkup = "<span size='large' weight='800'>%s</span>"
  56.  
  57. # Image Types
  58. #
  59. ImageNone     = 0
  60. ImagePlugin   = 1
  61. ImageCategory = 2
  62. ImageThemed   = 3
  63. ImageStock    = 4
  64.  
  65. # Filter Levels
  66. #
  67. FilterName = 1 << 0
  68. FilterLongDesc = 1 << 1
  69. FilterValue = 1 << 2    # Settings Only
  70. FilterCategory = 1 << 3 # Plugins Only
  71. FilterAll = FilterName | FilterLongDesc | FilterValue | FilterCategory
  72.  
  73. # Paths
  74. #
  75. DataDir = "/usr/share"
  76. IconDir = DataDir+"/ccsm/icons"
  77. PixmapDir = DataDir+"/ccsm/images"
  78.  
  79. # Version
  80. #
  81. Version = "0.8.2"
  82.  
  83.  
  84. # Translation
  85. #
  86. import locale
  87. import gettext
  88. locale.setlocale(locale.LC_ALL, "")
  89. gettext.bindtextdomain("ccsm", DataDir + "/locale")
  90. gettext.textdomain("ccsm")
  91. _ = gettext.gettext
  92.  
  93. # Category Transaltion Table
  94. # Just to get them into gettext
  95. #
  96. CategoryTranslation = {
  97. "General": _("General"),
  98. "Accessibility": _("Accessibility"),
  99. "Desktop": _("Desktop"),
  100. "Extras": _("Extras"),
  101. "Window Management": _("Window Management"),
  102. "Effects": _("Effects"),
  103. "Image Loading": _("Image Loading"),
  104. "Utility": _("Utility"),
  105. "All": _("All"),
  106. "Uncategorized": _("Uncategorized")
  107. }
  108.